package ssm.test;

public class substring {
    public static void main(String[] args) {
        String time="2018-01-30 20:20:20";
        System.out.println(time.substring(0,7));

    }
}
